
# class course():
#     name = 'python'
#     def func(self):
#         return 'hello world'
#
# setattr(course, 'name','jave')
# a = getattr(course,'name')
# print(a)
#
# aaaa = {'name':'xiaohong','age':'18'}
# for k,v  in aaaa.items():
#     print(k)
#     print(v)
#
#
# list = [11,11,11,22,33,4]
# aaaaa = set(list)
# print(aaaaa)

q = (1,1,2)
if not all(p in (0,1) for p in q):
    print(True)
else:
    print(False)

aaaa = (i for i in range(1,10))
a = next(aaaa)
print(a)
b = next(aaaa)
print(b)
print(aaaa)


aaaaa = [i for i in range(1,10)]
print(aaaaa)
